import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import ClassTypes from '@/components/class-types'
import PhoneNumber from '@/components/phone-number'
import ClassKind from '@/components/class-kind'
import ChooseTime from '@/components/choose-time'
import Syllabus from '@/components/syllabus'
import ClassNotes from '@/components/class-notes'
import myTeacher from '@/components/myteacher'
import ClassText from '@/components/class-text'
import ClassDetail from '@/components/classdetail'
import TeacherList from "@/components/TeacherList"
Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'PhoneNumber',
            meta: {
                title: '填写手机号码'
            },
            component: PhoneNumber
        }, {
            path: '/ClassTypes',
            name: 'ClassTypes',
            meta: {
                title: '选择课程'
            },
            component: ClassTypes
        }, {
            path: '/ClassKind',
            name: 'ClassKind',
            meta: {
                title: '课程种类'
            },
            component: ClassKind
        }, {
            path: '/ChooseTime',
            name: 'ChooseTime',
            meta: {
                title: '选择时间'
            },
            component: ChooseTime
        }, {
            path: '/Syllabus',
            name: 'Syllabus',
            meta: {
                title: '我的课程'
            },
            component: Syllabus
        },
        {
            path: '/ClassNotes',
            name: 'ClassNotes',
            meta: {
                title: '课后笔记'
            },
            component: ClassNotes
        },
        {
            path: '/myTeacher',
            name: 'myTeacher',
            meta: {
                title: '我的老师'
            },
            component: myTeacher
        },
        {
            path: '/TeacherList',
            name: 'TeacherList',
            meta: {
                title: '教师列表'
            },
            component: TeacherList
        },
        {
            path: '/ClassText',
            name: 'ClassText',
            meta: {
                title: '笔记和教材'
            },
            component: ClassText
        }, {
            path: '/ClassDetail',
            name: 'ClassDetail',
            meta: {
                title: '课程详情'
            },
            component: ClassDetail
        }
    ]
})